---
title: ChatZhipuAI
---

LangChain.js supports the Zhipu AI family of models.

https://open.bigmodel.cn/dev/howuse/model

## Setup

You'll need to sign up for an Zhipu API key and set it as an environment variable named `ZHIPUAI_API_KEY`

https://open.bigmodel.cn

You'll also need to install the following dependencies:

import IntegrationInstallTooltip from '/snippets/javascript-integrations/integration-install-tooltip.mdx';

<IntegrationInstallTooltip/>

```bash npm
npm install @langchain/community @langchain/core jsonwebtoken
```

## Usage

Here's an example:

import IntegrationZhipuai from "/snippets/javascript-integrations/examples/models/chat/integration_zhipuai.mdx";

<IntegrationZhipuai />

## Related

- Chat model [conceptual guide](/oss/langchain/models)
- Chat model [how-to guides](/oss/langchain/models)
